<template>
    <PageView>
        <a-spin :spinning="loading">
            <a-card title="团队关系">
                <treeDownList :list="list"></treeDownList>
            </a-card>
        </a-spin>
    </PageView>
</template>

<script>
    import Member from '../../api/Member'
    export default {
        name: 'teamTree',
        data(){
            return{
                loading:false,
                list:[],
                uid:null,
            }
        },
        activated () {
            this.list = []
            this.uid = this.$route.query.uid
            this.getList()
        },
        methods:{
            getList(){
                Member.teamList({ uid:this.uid}).then(res => {
                    this.list = res.data.map(v=>{
                        v.child = []
                        return v
                    })
                })
            }
        }
    }
</script>

<style scoped lang="less">

</style>